package com.example.biz.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @author hzwgs
 * @version 1.0
 * @description:
 * Source                        Target
 * Table Name	Data Entity	Description	Allowable Values	Field Type	Field Length	Cardinality	Mapping Rule	Data Entity	Field Type	Field Length	Table Name
 * @date 2022/6/27 14:38
 */
@Data
public class TableDescRef {
    @ExcelProperty(value = {"Source","Table Name"})
    private String s1;
    @ExcelProperty(value = {"Source","Data Entity"})
    private String s2;
    @ExcelProperty(value = {"Source","Description"})
    private String s3;
    @ExcelProperty(value = {"Source","Allowable Values"})
    private String s4;
    @ExcelProperty(value = {"Source","Field Type"})
    private String s5;
    @ExcelProperty(value = {"Source","Field Length"})
    private String s6;


    @ExcelProperty(value = {"Target","Cardinality"})
    private String cardinality;
    @ExcelProperty(value = {"Target","Mapping Rule"})
    private String mapping;
    @ExcelProperty(value = {"Target","Data Entity"})
    private String fieldName;
    @ExcelProperty(value = {"Target","Field Type"})
    private String fieldFormat;
    @ExcelProperty(value = {"Target","Field Length"})
    private String fieldLength;
    @ExcelProperty(value = {"Target","Table Name"})
    private String tableName;
    @ExcelIgnore
    @ExcelProperty(value = {"Target","Description"})
    private String description;
    @ExcelIgnore
    @ExcelProperty(value = {"Target","Mandatory"})
    private String mandatory;
    @ExcelIgnore
    @ExcelProperty(value = {"Target","Primary Key"})
    private String primaryKey;
    @ExcelIgnore
    @ExcelProperty(value = {"Target","Foreign Key"})
    private String foreignKey;
    @ExcelIgnore
    @ExcelProperty(value = {"Target","Default Values"})
    private String defaultValues;
}
